import 'package:flutter/material.dart';
import 'package:yp/config/config.dart';
import 'package:get/get.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'logic.dart';
import 'state.dart';

class OrderPaymentPage extends StatelessWidget {
  final OrderPaymentLogic logic = Get.put(OrderPaymentLogic());
  final OrderPaymentState state = Get.find<OrderPaymentLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Config.mainColor,
        title: Text(
          "收款码",
          style: TextStyle(
            color: Colors.white,
            fontSize: 32.sp,
          ),
        ),
        centerTitle: true,
        elevation: 0,
      ),
      body: Container(
        padding: EdgeInsets.only(top:276.w),
        child: Center(
          child: Column(
            children: [
              Text(
                "￥3213121",
                style: TextStyle(
                    color: Config.mainColor,
                    fontSize: 36.sp
                ),
              ),
              Padding(
                padding: EdgeInsets.only(top: 20.w,bottom: 40.w),
                child: Text(
                  "请客户扫描以下支付码完成支付～",
                  style: TextStyle(
                      color:Color(0xff222222),
                      fontSize: 24.sp
                  ),
                ),
              ),
              Image(
                image: AssetImage("assets/images/avatar.png"),
                width: 388.w,
                height: 388.w,
              ),
            ],
          ),
        ),
      ),
    );
  }
}
